def solution(nums: list):
    str1 = list(str(nums[0]))
    str2 = list(str(nums[1]))

    str1[0], str2[0] = str2[0], str1[0]  # 神秘报错

    return abs(int(''.join(str1)) - int(''.join(str2)))


if __name__ == '__main__':
    print(solution([1, 23]))

